﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace DTD2013.MainApp
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            DevExpress.Skins.SkinManager.EnableFormSkins();
            DevExpress.Skins.SkinManager.EnableMdiFormSkins();
            DevExpress.UserSkins.BonusSkins.Register();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (System.Configuration.ConfigurationManager.AppSettings["RunMode"]
                .Equals(DTD2013.Common.RunMode.Debug.ToString()))
            {
                Application.Run(new Startup());
            }
            else
            {
                try
                {
                    Application.Run(new Startup());
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString());
                }
            }
        }
    }
}
